<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title" id="ntModalLabel">{:lang("employee's_details")}</h4>
</div>
<div class="modal-body">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#detail_tab_base" data-toggle="tab">{:lang('basic_information')}</a>
                </li>
                <li>
                    <a href="#detail_tab_person" data-toggle="tab">{:lang('personal_information')}</a>
                </li>
                <li>
                    <a href="#detail_tab_other" data-toggle="tab">{:lang('other_information')}</a>
                </li>
            </ul>
        </div>
    </div>
    <div class="tab-content">
        <div role="tabpanel" class="tab-pane active" id="detail_tab_base"> <div class="row clearfix" id="detail_table_base">
            <div class="col-md-12 column">
                <table class="table table-striped table-hover ntTable">
                    <tbody>
                    <tr>
                        <td>{:lang('account')}</td>
                        <td>{$xqdata.name|default=''}</td>
                        <td>{:lang('default_language')}</td>
                        <td>{$xqdata.langperson|default=''}</td>
                    </tr>
                    <tr>
                        <td>{:lang('nickname')}</td>
                        <td colspan="3">{$xqdata.nickname|default=''}</td>
                    </tr>
                    <tr>
                        <td>{:lang('department')}</td>
                        <td>{$xqdata.departmentname|default=''}</td>
                        <td>{:lang('job')}</td>
                        <td>{$xqdata.positionname|default=''}</td>
                    </tr>
                    <tr>
                        <td>{:lang('entry_time')}</td>
                        <td>{$xqdata.work_day_date|default=''}</td>
                        <td>{:lang('resignation_date')}</td>
                        <td>{$xqdata.leave_day_date|default=''}</td>
                    </tr>
                    <tr>
                        <td>{:lang('basic_salary')}</td>
                        <td>{$xqdata.wage|default=''}</td>
                        <td>{:lang('status')}</td>
                        <td>{$xqdata.status|default=''}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div></div>
        <div role="tabpanel" class="tab-pane" id="detail_tab_person"><div class="row clearfix" id="detail_table_person">
            <div class="col-md-12 column">

                <table class="table table-striped table-hover ntTable">
                    <tbody>
                    <tr>
                        <td>{:lang('name')}</td>
                        <td colspan="3">{$xqdata.username|default=''}</td>
                    </tr>
                    <tr>
                        <td>{:lang('brithday')}</td>
                        <td>{$xqdata.birthday_date|default=''}</td>

                        <td>{:lang('education')}</td>
                        <td>{$xqdata.education|default=''}</td>
                    </tr>
                    <tr>
                        <td>{:lang('gender')}</td>
                        <td>{$xqdata.sex|default=''}</td>

                        <td>{:lang('marital_status')}</td>
                        <td>{$xqdata.marry|default=''}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div></div>
        <div role="tabpanel" class="tab-pane" id="detail_tab_other"><div class="row clearfix" id="detail_table_other">
            <div class="col-md-12 column">
                <table class="table table-striped table-hover ntTable">
                    <tbody>
                    <tr>
                        <td>{:lang('login_IP')}</td>
                        <td>{$xqdata.loginip|default=''}</td>
                        <td>{:lang('login_time')}</td>
                        <td>{$xqdata.login_time|default=''}</td>
                    </tr>
                    <tr>
                        <td>{:lang('edit_administrator')}</td>
                        <td> {$xqdata.mangname|default=''}</td>
                        <td>{:lang('edit_time')}</td>
                        <td> {$xqdata.update_at|default=''}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div></div>
    </div>
</div>
<div class="modal-footer">
    <div class="col-md-6 text-left">
        <a id="guanbi" href="{:url('personneledit',['id'=>$xqdata.id])}" class='btn btn-primary' id="btn_doEdit" data-toggle="modal" data-target="#worker_editModal">
            <span class="glyphicon glyphicon-pencil"></span> {:lang('edit')}
        </a>
    </div>
    <div class="col-md-6 text-right">
        <button type="button" class="btn btn-default quxiao" data-dismiss="modal"><span
                class="glyphicon glyphicon-remove"></span>{:lang('cancel')}
        </button>
    </div>
</div>
<script>
        $('#guanbi').click(function () {
            $('#worker_detailModal').modal('hide')
        })
        $(document).keydown(function (event) {
            if (event.keyCode == 13) {
                $('#worker_detailModal').modal('hide')
            }
        });
        
</script>